<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<% include  ../template/commonCss.ejs %>
	<link href="<%=resUrl%>/css/my/receive_address.css" rel="stylesheet" type="text/css" />
	<% include ../template/commonJs.ejs %>
	<% include ../template/chatLister.ejs %>
</head>
<script>
	var orderId = '<%-orderId%>';
</script>

<body ontouchstart>
		<% var topTitle = '选择收货地址';var topReturnType = '' %> 
		<% include ../template/topReturn.ejs %>
	<div class="address" id="contentTo" style="margin-top:1rem">
		
	</div>

	<script id="content" type="text/html">
		{{each list}}
		<div data-aid="{{$value.id}}" class="item {{if $value.isDefault == 1}}current{{/if}}">
			<div class="name">{{$value.name}}</div>
			<div class="info">
				<div class="row">{{$value.areaNames}}</div>
				<div class="row">{{$value.address}}</div>
				<div class="row">联系电话：{{$value.phone}}</div> 
			</div>
			<div class="state">
				<i class="iconfont icon-dagoux" style="font-size:0.6rem;"></i>
			</div>
			<div class="auto-height"></div>
			
		</div>
		{{/each}}
		<div class="weui-btn-area">
			<a class="weui-btn weui-btn_mini weui-btn_primary" href="javascript:visitUrl('/receive_address',true)">去添加</a> 
			{{if list}}
			<a class="weui-btn weui-btn_mini weui-btn_primary" href="javascript:" onclick="choseAdree();">确定</a>
			{{/if}} 
		</div>
	</script>
	<script type="text/javascript" src="<%=resUrl%>/js/order/selectAddress.js"></script>
</body>

</html>